﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class TrapMenuPanel : OptionBasePanel
{

    public Image preShow;
    public Texture2D texDefender, texFactory;

    public override void OnEnter()
    {
        base.OnEnter();
        preShow.color = new Color(1, 1, 1, 0);
        Vector2 texSize = new Vector2(ViewController.Instance.DistanceToScreen(ConstOfMap.xGap) / 2, ViewController.Instance.DistanceToScreen(ConstOfMap.yGap) / 2);
        preShow.GetComponent<RectTransform>().sizeDelta = texSize;
    }
    protected override void RightOptionStatus()
    {
        base.RightOptionStatus();
        preShow.color = new Color(1, 1, 1, 0);
    }

    protected override void LeftOptionStatus()
    {
        base.LeftOptionStatus();
        preShow.color = new Color(1, 1, 1, 0);
    }

    protected override void UpOptionStatus()
    {
        base.UpOptionStatus();
        preShow.color = new Color(1, 1, 1, 0);
    }

    protected override void DownOptionStatus()
    {
        base.DownOptionStatus();
        preShow.color = new Color(1, 1, 1, 0);
    }

    protected override void DoUpOption()
    {
        base.DoUpOption();
        MessageController.Instance.SendMsg("敬请期待");
    }

    protected override void DoDownOption()
    {
        base.DoDownOption();
        MessageController.Instance.SendMsg("敬请期待");
    }

    protected override void DoRightOption()
    {
        base.DoRightOption();
        MessageController.Instance.SendMsg("敬请期待");
    }

    protected override void DoLeftOption()
    {
        base.DoLeftOption();
        MessageController.Instance.SendMsg("敬请期待");
    }
}
